﻿using CsvHelper.Configuration.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DeHeng_Mes.Model.Data
{
    public class SpotWeld
    {
        [Name("时间")]
        public DateTime Date { get; set; }
        [Name("时间")]
        public TimeSpan Time { get; set; }
        [Name("VIN码")]
        public string TraceCode { get; set; }
        [Name("设备编号")]
        public string RobotId { get; set; }
        [Name("焊点号")]
        public string SpotNo { get; set; }
        [Name("规范号")]
        public string SpecificationNo { get; set; }
        [Name("设定电流1")]
        public string DefaultCurrent1 { get; set; }
        [Name("焊接电流1")]
        public string SpotCurrent1 { set; get; }
        [Name("焊接时间1")]
        public string SpotTime1 { set; get; }
        [Name("设定电流2")]
        public string DefaultCurrent2 { set; get; }
        [Name("焊接电流2")]
        public string SpotCurrent2 { set; get; }
        [Name("焊接时间2")]
        public string SpotTime2 { set; get; }
        [Name("设定电流3")]
        public string DefaultCurrent3 { set; get; }
        [Name("焊接电流3")]
        public string SpotCurrent3 { set; get; }
        [Name("焊接时间3")]
        public string SpotTime3 { set; get; }
        [Name("电流上限")]
        public string CurrentUpperLimit { set; get; }
        [Name("电流下限")]
        public string CurrentLowerLimit { set; get; }
        [Name("步增点数")]
        public string StepCount { set; get; }
        [Name("修模次数")]
        public string MoldRepairCount { set; get; }
        [Name("报警信息1")]
        public string AlarmMessage1 { set; get; }
        [Name("报警信息2")]
        public string AlarmMessage2 { set; get; }
        [Name("功率设定")]
        public string PowerSetting { set; get; }
        [Name("焊接功率")]
        public string SpotPower { set; get; }
        [Name("功率上限")]
        public string PowerUpperLimit { set; get; }
        [Name("功率下限")]
        public string PowerLowerLimit { set; get; }
        [Name("焊接电阻")]
        public string SpotResistance { set; get; }
        [Name("电阻设定")]
        public string ResistanceSetting { set; get; }
        [Name("电阻上限")]
        public string ResistanceUpperLimit { set; get; }
        [Name("电阻下限")]
        public string ResistanceLowerLimit { set; get; }
        [Name("是否飞溅")]
        public string IsFlying { set; get; }
        [TypeConverter(typeof(SafeDateTimeConverter))]
        [Name("飞溅时刻")]
        public DateTime FlyingTime { set; get; }
        [Name("焊接电压")]
        public string SpotVoltage { set; get; }
        [Name("自适应开关")]
        public string AdaptiveSwitch { set; get; }

    }
}
